package com.huamoxi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huamoxi.entity.Menu;
import com.huamoxi.result.Result;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    Result<Menu> getMenusByRoleId(@Param("roleId") Long roleId);

    Result<Menu> getMenusByUserId(@Param("userId") Long userId);
}
